ROUTESHOW

Qualifiers:

None

Purpose:

Use this command to inspect the contents of the routing table. The output includes a list of destinations along with the next-hop gateway and associated interface for each entry. Network routes are displayed separately from host-specific routes. Netmask details are not provided.

NOTE: The IP forwarding process only uses the first route entry to a destination. When multiple routes exist to the same destination with the same netmask (which is not shown), the first route entry uses the lowest administrative weight. The remaining entries (listed as additional routes) use the same destination address. One of those entries will replace the primary route if it is deleted.

Details:

The routing table Flags field represents a decimal value of the flags specified for a given route. The following is a list of currently available flag values:

Example:

Entry: ROUTESHOW

System Response:

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

0.0.0.0         10.10.158.1     0.0.0.0         UG    0      0        0 ens160

10.0.0.0        10.10.158.1     255.255.255.128 UG    0      0        0 ens160

10.10.158.0     0.0.0.0         255.255.255.128 U     0      0        0 ens160

10.10.158.1     0.0.0.0         255.255.255.255 UH    0      0        0 ens160